﻿@namespace SE.PO.CInterface.Web.Pages.DB.Components
@using SE.PO.CInterface.Web.Clients
@using SE.PO.CInterface.DBProtocols.Devices
@using SE.PO.CInterface.Enums
@inject DeviceClient Client
@inject INotificationService Notice

<Table @ref="_table"
       TItem="DeviceDto"
       DataSource="@_source"
       Total="_total"
       @bind-PageIndex="_pageIndex"
       @bind-PageSize="_pageSize"
       ScrollBarWidth="5px"
       ScrollY="520px"
       Loading="@_loadingData"
       @bind-SelectedRows="SelectedDevices"
       Size="TableSize.Small">
    <Selection Key="@(context.Id)"/>
    <PropertyColumn Width="100" Title="设备编号" Property="c => c.Id"/>
    <PropertyColumn Width="300" Title="设备名称" Property="c => c.Equipment"/>
    <PropertyColumn Width="300" Title="IO" Property="c => c.IODevice"/>
    @* <PropertyColumn Title="设备描述" Property="c => c.DeviceDesc"/> *@
</Table>